using System;

namespace EngineericaApi.<%= app.Name %>
{
	/// <summary>
	/// Contains access to all the actions related to <%= ClassName %>s.
	/// </summary>
	public static partial class <%- ClassName %>
	{
		<% IterateParams = RequiredParameters %>
		/// <summary>
		/// <%= Name %><%- requiresAuth ? ".  This action requires authentication." : "" %>
		/// </summary>
<%- include helpers/functionparam-doc %>
		public static ActionResult <%= FunctionName %>(<%- include helpers/functionparam %>)
		{
			return ActionExecutor.ExecuteInternal(ConnectionInformation.<%- app.Name %>, <%- requiresAuth ? "true" : "false" %>, "<%- CommandName %>", new {<%- include helpers/functionparam-call %>});
		}

		<% if (OptionalParameters.length > 0) { 
			IterateParams = AllParams; %>
		/// <summary>
		/// <%= Name %>
		/// </summary>
<%- include helpers/functionparam-doc %>
		public static ActionResult <%= FunctionName %>(<%- include helpers/functionparam %>)
		{
			return ActionExecutor.ExecuteInternal(ConnectionInformation.<%- app.Name %>, <%- requiresAuth ? "true" : "false" %>, "<%- CommandName %>", new {<%- include helpers/functionparam-call %>});
		}

		<% } %>

	}
}


